import axios from 'axios'
// import { Message } from 'element-ui'

// create an axios instance
const service = axios.create({
  baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
  // withCredentials: true, // send cookies when cross-domain requests
  timeout: 5000 // request timeout
})
// 请求拦截器
service.interceptors.request.use(function(config) {
  return config // 放行
})

// 响应拦截器
service.interceptors.response.use(
)

export default service
